import numpy as np 
from matplotlib import pyplot as plt 
 
x = np.loadtxt('test.txt'); #最普通的loadtxt

y=np.sin(x/16*2*np.pi);

# plt.plot(x,y) 
plt.plot(y) 
plt.show()